<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript">
    var user={
        name:"蔡明宏",
        age:21,
        sex:"男"
    }

    console.log(JSON.stringify(user));
</script>
<body>

</body>
</html>